package rs.dalao.syc.index.dao.persist.repository.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import rs.dalao.syc.index.dao.persist.mapper.VaccineMapper;
import rs.dalao.syc.index.dao.persist.repository.IVaccineRepository;
import rs.dalao.syc.index.pojo.vo.HotDetailVO;
import rs.dalao.syc.index.pojo.vo.VacDetailsVO;
import rs.dalao.syc.index.pojo.vo.VaccineListVO;

import java.util.List;


@Slf4j
@Repository
public class VaccineRepositoryImpl implements IVaccineRepository {

    @Autowired
    private VaccineMapper vaccineMapper;
    @Override
    public List<VaccineListVO> getVaccineList(Integer type) {
        return vaccineMapper.getVaccineList(type);
    }

    @Override
    public List<VacDetailsVO> getVaccineDetail(Long articleId) {
        return vaccineMapper.getVaccineDetail(articleId);
    }

    @Override
    public List<HotDetailVO> selectVaccineHotDetail(){
        return vaccineMapper.selectVaccineHotDetail();
    }
}
